package com.cunshe.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 修改密码
 * @author xiao
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserUpdatePasswordVO implements Serializable {

    /**
     * 新密码
     */
    @ApiModelProperty(value = "新密码")
    @NotBlank(message = "[password1]不能为空")
    @Size(max = 64, message = "${validatedValue}长度不能大于{max}")
    private String password1;

    /**
     * 确认密码
     */
    @ApiModelProperty(value = "确认密码")
    @NotBlank(message = "[password2]不能为空")
    @Size(max = 64, message = "${validatedValue}长度不能大于{max}")
    private String password2;

    private static final long serialVersionUID = 1L;
}